//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopDecorateContent, MinishopDecorateContentResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopDecorateContentList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopDecorateContentResponse>(`/uctoo/minishop_decorate_content/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopDecorateContent = async (id: string) => {
  return requestClient.get<MinishopDecorateContent>(`/uctoo/minishop_decorate_content/${id}`);
};

export const adductooMinishopDecorateContent = async (data: Partial<MinishopDecorateContent>) => {
  return requestClient.post<MinishopDecorateContent>('/uctoo/minishop_decorate_content/add', data);
};

export const edituctooMinishopDecorateContent = async (data: Partial<MinishopDecorateContent>) => {
  return requestClient.post<MinishopDecorateContent>('/uctoo/minishop_decorate_content/edit', data);
};

export const deleteuctooMinishopDecorateContent = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_decorate_content/del', { id });
};
